package com.k2data.k2app.rest;

import com.k2data.k2app.domain.deviceRest.SysLog;
import com.k2data.k2app.rest.domain.RectList;
import com.k2data.k2app.rest.domain.RectObject;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by clb on 17-6-15.
 */
@Component
public class SystemClientFallback implements SystemClient {


	@Override
	public RectObject getUserById (@PathVariable("id") Long id) {
		RectObject rectObject = new RectObject();
		return rectObject.initDeviceRectMap();
	}

	@Override
	public RectList getUserByLoginName(@RequestParam("loginName") String loginName) {
		RectList rectList = new RectList();
		return rectList.initDeviceRectList();
	}

	@Override
	public RectObject getUsefulMailSetting () {
		RectObject rectObject = new RectObject();
		return rectObject.initDeviceRectMap();
	}

	@Override
	public RectObject getUsefulSmsSetting() {
		RectObject rectObject = new RectObject();
		return rectObject.initDeviceRectMap();
	}

	@Override
	public RectObject insertLog(@RequestBody SysLog map) {
		RectObject rectObject = new RectObject();
		return rectObject.initDeviceRectMap();
	}

	@Override
	public RectList getRolesByUser (@PathVariable("id") Long id) {
		RectList rectObject = new RectList();
		return rectObject.initDeviceRectList();
	}


}
